#!/bin/bash

if [ -f ~/.bash_aliases ]; then
    mv ~/.bash_aliases ~/.bash_aliases_bak
    echo "Attention! Your original .bash_aliases file has been restored into .bash_aliases_bak."
fi
  
cp bash_aliases ~/.bash_aliases

if [ -f ~/.bashrc ]; then
    source ~/.bashrc
    echo "Installed successfully! Enjoy (^-^)."
else
    echo "Cannot find .bashrc file on your home! Installed Failed."
fi
